Go to advanced search

by rin67630
Mon Aug 19, 2019 10:11 pm
Forum: Raspbian
Topic: Menu editor, how to make the terminal open full screen?
Replies: 12
Views: 552

Re: Menu editor, how to make the terminal open full screen?

I just wonder why we apparently have got no option to define a menu entry that opens any program in a maximized way Once you sort out which actual terminal program you are running you can read its man page and sort out if it has the options you want. If not just install and use one that does. The q...
by rin67630
Mon Aug 19, 2019 10:10 pm
Forum: Raspbian
Topic: Menu editor, how to make the terminal open full screen?
Replies: 12
Views: 552

Re: Menu editor, how to make the terminal open full screen?

I just wonder why we apparently have got no option to define a menu entry that opens any program in a maximized way Once you sort out which actual terminal program you are running you can read its man page and sort out if it has the options you want. If not just install and use one that does. The q...
by rin67630
Sun Aug 18, 2019 10:31 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

Try to ask the right question next time ! OK Peter, i'll do my best. I probably did initially with : ... if [ ! -L linkname ]; then sudo ln ... fi [/code] Thank you, that is the approach that I expected. Could you please give me the concrete example of how to specify the linkname? The stuff with li...
by rin67630
Sun Aug 18, 2019 10:14 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

The right syntax is if [ ! -L linkname ] See https://www.tldp.org/LDP/abs/html/fto.html Thank you Peter, but my question was not how to use the if statement, but how to specify correctly the symlink within the if statement. I have seen that you have modified your answer. Thank you... The original s...
by rin67630
Sun Aug 18, 2019 10:04 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

But if you delete one of them and create a hard link then they will be. The very purpose of the thing is to have the files running in /usr/bin/ as an attempt to make this https://github.com/deanmao/avrdude-rpi more user friendly Maybe you just could help me to enter the right syntax for the if [ ! ...
by rin67630
Sun Aug 18, 2019 9:56 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

rpdom wrote:
Sun Aug 18, 2019 9:06 am
But if you delete one of them and create a hard link then they will be.
The very purpose of the thing is to have the files running in /usr/bin/

Maybe you just could help me to enter the right syntax for the

Code: Select all

if [ ! -L linkname ]
bash statement?

That' s all I need.
Thank you.
by rin67630
Sun Aug 18, 2019 9:01 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

epoch1970 wrote:
Sun Aug 18, 2019 8:44 am
Hard links do not “must”, point to the same inode as the original file, they do by nature.
I don’t see that should be a problem.
Perhaps you meant to say the files are not on the same device, hence you cannot use hard links?
No, they are not in the same inode.
by rin67630
Sun Aug 18, 2019 8:24 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

epoch1970 wrote:
Sun Aug 18, 2019 7:59 am
Pray tell, what is wrong with hard links?
They must be on the same inode, which is not the case.
by rin67630
Sun Aug 18, 2019 8:03 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

Then, prior to creating a symlink, test whether it (doesn’t) exist and create it in that event only if [ ! -L linkname ]; then sudo ln ... fi Thank you, that is the approach that I expected. Could you please give me the concrete example of how to specify the linkname? The stuff with links (e.g. del...
by rin67630
Sun Aug 18, 2019 5:03 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Re: Avoiding circular symlinks in an install script

rpdom wrote:
Sun Aug 18, 2019 4:52 am
Use a hard link instead of a symlink?
In the original program? Funny.
Why do you think the whole procedure was done that way?
by rin67630
Sun Aug 18, 2019 4:25 am
Forum: Advanced users
Topic: Avoiding circular symlinks in an install script
Replies: 18
Views: 275

Avoiding circular symlinks in an install script

Hi, I am writing an install script: sudo cp autoreset /usr/bin sudo cp avrdude-autoreset /usr/bin sudo mv /home/pi/arduino-1.8.8/hardware/tools/avr/bin/avrdude /usr/bin/avrdude-original sudo ln -s /usr/bin/avrdude-autoreset /home/pi/arduino-1.8.8/hardware/tools/avr/bin/avrdude sudo chmod 755 /usr/bi...
by rin67630
Sun Aug 18, 2019 4:17 am
Forum: Raspbian
Topic: Menu editor, how to make the terminal open full screen?
Replies: 12
Views: 552

Re: Menu editor, how to make the terminal open full screen?

I am running Raspbian since we are in the Raspbian thread.
Its terminal is /usr/bin/x-terminal-emulator

I just wonder why we apparently have got no option to define a menu entry that opens any program in a maximized way
by rin67630
Fri Aug 16, 2019 8:58 pm
Forum: Raspbian
Topic: Menu editor, how to make the terminal open full screen?
Replies: 12
Views: 552

Re: Menu editor, how to make the terminal open full screen?

No, it did not work.

But I could replace the command with
/usr/bin/x-terminal-emulator --geometry=64x12
which opens a smaller window fitting into the tiny LCD.

Basically the main problem is solved.
Maybe someone knows if there is nevertheless a way to open any program full-screen?
by rin67630
Fri Aug 16, 2019 5:59 pm
Forum: Raspbian
Topic: Menu editor, how to make the terminal open full screen?
Replies: 12
Views: 552

Menu editor, how to make the terminal open full screen?

Hi
the Terminal opens currently as a window, for small lcd screens the window is too large.
Have I got a way to specify in the menu editor to open terminal full screen?
Regards
Laszlo
by rin67630
Thu Aug 15, 2019 2:03 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: My horror trip trying to make an installation of RPD on a Stick
Replies: 2
Views: 164

Re: My horror trip trying to make an installation of RPD on a Stick

Just to be sure I was not accusing Debian without cause:
I have tested the stick used for the installation in the same port with F3 and F3-read reports NO problem.
So it is not the USB-stick, that is corrupt.
by rin67630
Thu Aug 15, 2019 10:56 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: My horror trip trying to make an installation of RPD on a Stick
Replies: 2
Views: 164

My horror trip trying to make an installation of RPD on a Stick

Hi, I tried yesterday to make an installation of RPD on a USB-Stick, not a live system + persistence, but a full install. I had made that with Ubuntu a couple of times and it worked perfectly as an alternative OS on any system. With RPD it was a huge mess and now i have got a non working RPD stick a...
by rin67630
Thu Aug 15, 2019 7:09 am
Forum: Troubleshooting
Topic: Does cloning an SD clone the Pi's MAC address?
Replies: 20
Views: 755

Re: Does cloning an SD clone the Pi's MAC address?

I don't care about the MAC address, except my DHCP server (Android phone) puts them both on the same IP address, which doesn't work very well. I am cloning hundreds of SD cards and can say that piclone has nothing to do with WLAN MAC addresses. These are tied to the WLAN chip used: on RPi3 with WLA...
by rin67630
Wed Aug 14, 2019 2:26 pm
Forum: Advanced users
Topic: Creating a SD image suitable for Balena Etcher
Replies: 10
Views: 413

Re: Creating a SD image suitable for Balena Etcher

Oops. Obviously missed an important part. I dd my nicely-configured SD card to somewhere using dd, and then dd it back into new cards. Then using the SD copier is far easier! Making images is intended to distribute an image to non Linux aware people, who will just be able to run Balena etcher on Wi...
by rin67630
Wed Aug 14, 2019 9:42 am
Forum: Advanced users
Topic: Creating a SD image suitable for Balena Etcher
Replies: 10
Views: 413

Re: Creating a SD image suitable for Balena Etcher

etcher wants an image file so a quick google for how to create an image file from a SD card revelled under windows win32diskimager is the tool to use and under *nix the dd command in the format dd should do it? I tried that, did not work. Additionally that does mostly not work that way dd if=/dev/s...
by rin67630
Wed Aug 14, 2019 9:31 am
Forum: Python
Topic: Sniffing data from busy serial port...
Replies: 8
Views: 364

Re: Sniffing data from busy serial port...

Thank you for the reference to Pigpio, i will check that soon.
by rin67630
Tue Aug 13, 2019 4:58 pm
Forum: Python
Topic: Sniffing data from busy serial port...
Replies: 8
Views: 364

Re: Sniffing data from busy serial port...

Thanks Hippy for replying. The program is a scientifical app written in Java. Is seems that the Java lib used is only suited for real ports. I already tried the trick with the symlink, with no luck. ser2net behaves similarly: no luck at all with /dev/pts pseudo ports. The primary port is dev/ttyAMA0...
by rin67630
Tue Aug 13, 2019 4:40 pm
Forum: Advanced users
Topic: Image File Utilities
Replies: 3
Views: 431

Re: Image File Utilities

Super! very useful applets!

Could you please tell me where to put the unzipped files? Just in /home/pi)?
Are they executable directly or must we first chmod them?

A detailed noob-proof description of what to do would really be useful.

Thank you!
by rin67630
Tue Aug 13, 2019 2:33 pm
Forum: Advanced users
Topic: Creating a SD image suitable for Balena Etcher
Replies: 10
Views: 413

Creating a SD image suitable for Balena Etcher

Hi
I would like to create a SD image of my ready configured RPi that is suitable for Balena Etcher
I tried dd but the generated of= file will not work on Balena, it does not issue an error, but stays forever and writes nothing to the SD card.

Who knows, how to make a balena compatible file?
by rin67630
Tue Aug 13, 2019 2:13 pm
Forum: Python
Topic: Sniffing data from busy serial port...
Replies: 8
Views: 364

Re: Sniffing data from busy serial port...

Can you alter the port the existing program communicating with /dev/ttyAMA0 uses ? If so it seems that 'socat' or 'tty0tty' would both be usable. You might be able to use /dev/ptmx but I have no experience of using that Yes I can alter the input port to another real serial port, but altering it to ...
by rin67630
Tue Aug 13, 2019 12:28 pm
Forum: Python
Topic: Sniffing data from busy serial port...
Replies: 8
Views: 364

Re: Sniffing data from busy serial port...

Apparently Linux is here somewhat more restrictive and something like com0com does not seem to exist.

I wonder if the pigpio library would allow to read raw GPIO data fromGPIO15 and provide a kind of software serial....

Go to advanced search