Go to advanced search

by brucetexpeditefile
Tue May 29, 2018 8:44 pm
Forum: Advanced users
Topic: Terminal Login from bash script
Replies: 3
Views: 512

Re: Terminal Login from bash script

Before I forget...

Be prepared to hand edit the autoexpect output...

Bruce
by brucetexpeditefile
Thu May 24, 2018 12:59 pm
Forum: Advanced users
Topic: Terminal Login from bash script
Replies: 3
Views: 512

Re: Terminal Login from bash script

I've done something similar to this using expect scripts. They can be a bit tricky to get right though. I've also used that tool that auto creates the scripts for you. (Can't remember the name but a google search will find it.) Expect scripts are about the only way I've found to script things that p...
by brucetexpeditefile
Thu May 25, 2017 2:31 pm
Forum: Advanced users
Topic: [Solved] Issues with root=PARTUUID= in cmdline.txt at boot
Replies: 6
Views: 17350

Re: Issues with root=PARTUUID= in cmdline.txt at boot

Yea, never did get the PARTUUID to work. I don't have direct access to my pi systems right now but here are some of my notes that should get you going. Note that I haven't used the subvol but this should get you started. You are on the right track with the blkid command. Use the UUID= entry and igno...
by brucetexpeditefile
Mon Aug 01, 2016 3:40 pm
Forum: Advanced users
Topic: Kernel package update deletes /lib/modules of older kernels
Replies: 13
Views: 2649

Re: Kernel package update deletes /lib/modules of older kern

OK, looks like I need some help here. I have a Jessie setup that roots to a hard disk partition using btrfs. What is the correct procedure to update the OS and the kernel? As stated above, just doing the update bricks the pi. If I put the kernel= entry in the config.txt file and do the update, the ...
by brucetexpeditefile
Sun Jul 31, 2016 1:41 pm
Forum: Advanced users
Topic: Kernel package update deletes /lib/modules of older kernels
Replies: 13
Views: 2649

Re: Kernel package update deletes /lib/modules of older kern

OK, looks like I need some help here. I have a Jessie setup that roots to a hard disk partition using btrfs. What is the correct procedure to update the OS and the kernel? As stated above, just doing the update bricks the pi. If I put the kernel= entry in the config.txt file and do the update, the u...
by brucetexpeditefile
Mon Jun 13, 2016 4:31 am
Forum: Advanced users
Topic: Automating RPi testing
Replies: 4
Views: 3334

Re: Automating RPi testing

Hi David, Well, it sounds like you have certainly earned your stripes! I always admire those who have the time and fortitude to release software to the wild and like to help that cause where I can... As you said, setting up these testing environments can be a huge effort. They are, however, worth it...
by brucetexpeditefile
Sun Jun 12, 2016 4:25 pm
Forum: Advanced users
Topic: Automating RPi testing
Replies: 4
Views: 3334

Re: Automating RPi testing

Hi David, Yes, doing automated testing on full systems like the Pi can be a challenge. I commend you on your attempt! Since I don't know what your software does or how extensive it is, I can only answer your questions generically. However, I've done a few of these projects and hopefully you can avoi...
by brucetexpeditefile
Sun Apr 24, 2016 3:45 pm
Forum: Advanced users
Topic: Auto Login On Ubuntu Mate
Replies: 4
Views: 8580

Re: Auto Login On Ubuntu Mate

Converted the entry to a mailto link? Here is the file name.

Code: Select all

etc/systemd/system/getty.target.wants/[email protected]
Note: I'm running 15.10. Thanks for the heads up on 16.04

Bruce
by brucetexpeditefile
Sun Apr 24, 2016 3:42 pm
Forum: Advanced users
Topic: Auto Login On Ubuntu Mate
Replies: 4
Views: 8580

Re: Auto Login On Ubuntu Mate

Sorry, I missed the CLI entry. Here is how I do this on the PI as well as the other ARM computer running mate. sudo vi /etc/systemd/system/getty.target.wants/[email protected].service Find the line 'ExecStart=-/sbin/agetty %I $TERM Change it to 'ExecStart=-/sbin/agetty --noclear -a pi %I $TERM Change the p...
by brucetexpeditefile
Sun Apr 24, 2016 3:27 pm
Forum: Advanced users
Topic: Auto Login On Ubuntu Mate
Replies: 4
Views: 8580

Re: Auto Login On Ubuntu Mate

Haven't tried this on a PI but this is what I do on another ARM based SBC....

Only works if you are running lightdm...

Edit:

/usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf

Then add the following line at the end:

autologin-user=pi


Bruce
by brucetexpeditefile
Thu Mar 24, 2016 4:23 am
Forum: Advanced users
Topic: GUI on Raspbian Lite?
Replies: 8
Views: 6957

Re: GUI on Raspbian Lite?

I've done this a few times. I find that for what I need at least, it is easier to add a GUI to the headless system than it was to remove all the other stuff from the full system. Anyway, it is pretty easy... sudo apt-get install xinit sudo apt-get install lxde-core lxterminal lxappearance If you wan...
by brucetexpeditefile
Sun Feb 28, 2016 4:59 pm
Forum: Advanced users
Topic: lighttpd and PHP fail to start
Replies: 4
Views: 2609

Re: lighttpd and PHP fail to start

Thank you very much!

....now if I can just figure out how to update all those 27 sites that describe how to get this to work that are going to break....

Bruce
by brucetexpeditefile
Sat Feb 27, 2016 4:14 pm
Forum: Advanced users
Topic: lighttpd and PHP fail to start
Replies: 4
Views: 2609

Re: lighttpd and PHP fail to start

OK, I now have it running but all I did was change the input format. Here is the file that finally worked. <html> <body> <?php phpinfo(); ?> </body> </html> However, if you put a space in the line that calls php such as this: <? php or if you put the php text on the NEXT line like this: <? php phpin...
by brucetexpeditefile
Fri Feb 26, 2016 4:50 pm
Forum: Advanced users
Topic: lighttpd and PHP fail to start
Replies: 4
Views: 2609

lighttpd and PHP fail to start

I've tried to get the lighttpd web server installed on Jessie with PHP support without any luck. From the documentation on the web in several places, it says to simply do the following: sudo apt-get install lighttpd sudo apt-get install php5-common php5-cgi php5 sudo lighty-enable-mod fastcgi-php su...
by brucetexpeditefile
Fri Jan 15, 2016 7:26 pm
Forum: Advanced users
Topic: /dev/sda disappears, then suddenly reappears as /dev/sdb
Replies: 10
Views: 6214

Re: /dev/sda disappears, then suddenly reappears as /dev/sdb

I have the SD card as the boot device and root from a volume on a hard disk. The root volume is /dev/sda2. When I attached a second hard disk on it, and before it was even mounted, the root dev changed to /dev/sdb2. Mount, df -h, etc., all used sdb2. My script that ran to attempt to clone the system...
by brucetexpeditefile
Mon Dec 07, 2015 4:35 pm
Forum: Advanced users
Topic: Clone just boot partition on SD card
Replies: 2
Views: 1554

Re: Clone just boot partition on SD card

Just in case someone searches for this in the future... I was able to do the following to create a bootable SD card. Note this is what you type in, not a script... sudo fdisk -l /dev/sdb o n p 1 8192 122879 t c p w sudo mkdosfs -F 32 -I /dev/sdb1 sudo mkdir /mnt/smallboot sudo mount /dev/sdb1 /mnt/s...
by brucetexpeditefile
Tue Dec 01, 2015 9:15 pm
Forum: Advanced users
Topic: Clone just boot partition on SD card
Replies: 2
Views: 1554

Clone just boot partition on SD card

I thought I would ask here first before I go spend time experimenting on this topic.... I have a PI model 2 B that boots from the SD card but roots off of a btrfs volume on a hard disk. I want to be able to "clone" this system. I already have a script that will clone the hard disk. However, I would ...
by brucetexpeditefile
Mon Oct 05, 2015 11:06 pm
Forum: Advanced users
Topic: 4.x kernal and PARTUUID in cmdline.txt
Replies: 0
Views: 507

4.x kernal and PARTUUID in cmdline.txt

When I switched to the 4.X kernel, the option to use root=PARTUUID=xxx in the cmdline.txt seemed to break. I remember people talking about the unlikelihood of two USB devices being swapped during the boot process. Well..... I root to a btrfs volume on a USB hard disk. (That was an interesting advent...
by brucetexpeditefile
Mon Jun 29, 2015 4:55 pm
Forum: Troubleshooting
Topic: task bar oscillates on startx, alignment assertion
Replies: 3
Views: 1608

Re: task bar oscillates on startx, alignment assertion

Thanks for your help. You were on the right track with the audio but adding this user to the audio group didn't seem to help it. I ended up hand editing the panel file (~/.config/lxpanel/LXDE-pi/panels/panel) and removing the entry for the audio applet. Startx then worked correctly. Attempting to ad...
by brucetexpeditefile
Sun Jun 28, 2015 5:53 pm
Forum: Troubleshooting
Topic: task bar oscillates on startx, alignment assertion
Replies: 3
Views: 1608

Re: task bar oscillates on startx, alignment assertion

Thanks for the pointer to the audio group Would have never thought about that since I don't use or need it on this machine. I'll give that a check when I'm back in the office. Oh, and thanks for the heads up on sudo startx...

Bruce
by brucetexpeditefile
Sun Jun 28, 2015 2:43 am
Forum: Troubleshooting
Topic: task bar oscillates on startx, alignment assertion
Replies: 3
Views: 1608

task bar oscillates on startx, alignment assertion

Model 2 Pi, latest 4.0 kernel, X works for pi user and if I sudo startx with the new user. I just added a new user to the Pi, logged out and back in as the new user. Run startx and X almost starts but when it attempts to display the task bar, the task bar is shown, then disappears, again and again. ...
by brucetexpeditefile
Wed Jun 24, 2015 8:10 pm
Forum: Advanced users
Topic: Linux kernel is now 4.0
Replies: 182
Views: 97184

Re: Linux kernel is now 4.0

Ah, I used PARTUUID= whereas you used UUID= Just to be clear, I have a GPT partition table with multiple partitions. I thought I had to use the PARTUUID rather than the UUID for the device itself? Not sure I completely understand this yet...

Bruce
by brucetexpeditefile
Wed Jun 24, 2015 4:34 pm
Forum: Advanced users
Topic: Linux kernel is now 4.0
Replies: 182
Views: 97184

Re: Linux kernel is now 4.0

I am able to boot off the SD card but root to a USB hard disk with 4K sectors running btrfs. However, when I switched to the 4.0 kernel, the cmdline.txt trick setting root=PARTUUID=XXXX didn't seem to work. I have to set root=/dev/sda1. It did work with the 3.18 kernel. I tried this with both btrfs ...
by brucetexpeditefile
Tue Jun 23, 2015 11:01 pm
Forum: Raspbian
Topic: Change boot address to UUID
Replies: 35
Views: 13659

Re: Change boot address to UUID

I was able to do something similar but with a USB hard disk. I have the PI rooted off the USB disk successfully with the 4.0 kernel with the cmdline.txt setup to have root=/dev/sda1 and the rootfstype=btrfs. I ended up using 2 different PIs and Clonezilla because of the 4K sector issue on the hard d...

Go to advanced search