Go to advanced search

by tpyo kingg
Sat Oct 24, 2020 5:20 pm
Forum: Beginners
Topic: Changing from default password before a headless setup
Replies: 5
Views: 143

Re: Changing from default password before a headless setup

Is there any way to change the default password of the pi directly from the SD card before actually booting the pi for the first time so I could safely connect to it via SSH after the first boot? There are a couple of ways. Both require mounting the EXT4 partition and writing to a file or two. They...
by tpyo kingg
Fri Oct 23, 2020 10:25 am
Forum: Beginners
Topic: Desktop Files
Replies: 5
Views: 133

Re: Desktop Files

In XFCE4, you can reassign the default application for text files but it is done in a non-obvious place: Open the file manager and find one of the files, then right-click on it, choose "Properties", and then use the "Open With" pull-down menu. If you set Leafpad there, then after that whenever you o...
by tpyo kingg
Fri Oct 23, 2020 8:41 am
Forum: Troubleshooting
Topic: Can't get UFW to allow DHCP
Replies: 13
Views: 360

Re: Can't get UFW to allow DHCP

If UFW is enabled in systemd and running automatically starting at boot on the fresh installation and if the rules are blocking the system from serving up DHCP, then I would ask if you could check the new setup and verify what the UFW rules are for the relevant network interface. $ sudo ufw status n...
by tpyo kingg
Wed Oct 21, 2020 11:49 am
Forum: Beginners
Topic: Postgres on Pi zero
Replies: 5
Views: 143

Re: Postgres on Pi zero

You might also look at SQLite3 which has lower system requirements that PostgreSQL and can be interacted with using SQL queries. I have it on a 3B+ at the moment. The data set is small so far, a single table with just over 100k records: $ uptime 14:43:20 up 14 days, 19:05, 8 users, load average: 0.0...
by tpyo kingg
Tue Oct 20, 2020 5:23 pm
Forum: Advanced users
Topic: Feasibility question: automatic shutdown via SSH login
Replies: 5
Views: 148

Re: Feasibility question: automatic shutdown via SSH login

An optimization you can do with ssh is to use the command= feature in .ssh/authorized_keys. That's the method I would recommend too. I'd add that the authorized_keys file format is described in the manual page for sshd in its own section, "AUTHORIZED_KEYS FILE FORMAT", in all-caps. See "man sshd" a...
by tpyo kingg
Mon Oct 19, 2020 6:03 am
Forum: Troubleshooting
Topic: Can access through SSH but not SFTP
Replies: 16
Views: 1333

Re: Can access through SSH but not SFTP

I have tried flashing a new image and still the same results with Raspian Since everything looks normal on the server side and you have reflashed with a new Raspian image and still get the same results, I would guess that the problem somehow lies with the client or the system it is on. Double-check...
by tpyo kingg
Sun Oct 18, 2020 6:58 am
Forum: Troubleshooting
Topic: Can't get UFW to allow DHCP
Replies: 13
Views: 360

Re: Can't get UFW to allow DHCP

Interacting with UFW itself deals with the current ruleset for that particular currently running instance of UFW. When the machine restarts the UFW service, which is monitored by systemd, it all gets restored by systemd. So to disable that systemd service at boot , sudo systemctl disable ufw After t...
by tpyo kingg
Sun Oct 18, 2020 5:42 am
Forum: Troubleshooting
Topic: SSHing into second raspberry pi
Replies: 5
Views: 161

Re: SSHing into second raspberry pi

[You really need to trust your local network or a new level of paranoia will ensue. It all depends on which local network and who and what you share it with. Home network? Yes, probably depending on kids or parents. Work network? Maybe, but not such good a idea. School network? Definitely not. Know...
by tpyo kingg
Sat Oct 17, 2020 4:35 pm
Forum: Troubleshooting
Topic: SSHing into second raspberry pi
Replies: 5
Views: 161

Re: SSHing into second raspberry pi

The new system has the same IP address as the one you just moved, but the SSH client is still expecting the SSH host keys from the first one because those are the ones recorded in the client ~/.ssh/known_hosts register. So the error message you see is expected in that context. One way to deal with t...
by tpyo kingg
Thu Oct 15, 2020 12:45 pm
Forum: Beginners
Topic: Run VNC Client from SSH session
Replies: 11
Views: 288

Re: Run VNC Client from SSH session

Josephny wrote:
Thu Oct 15, 2020 12:09 pm
From my Windows machine (SSH'ing into Pi), I've tried both Putty and from the command line (ssh -X) and,
For that method to work, you must have the prerequisite is Xming or a similar X11 server on the Windows machine you are starting from.
by tpyo kingg
Thu Oct 15, 2020 9:55 am
Forum: Beginners
Topic: Run VNC Client from SSH session
Replies: 11
Views: 288

Re: Run VNC Client from SSH session

One approach is to do X11 forwarding from your Raspberry Pi but it depends on which system you are connecting from to your Raspberry Pi. If it is from another Raspberry Pi or any other normal GNU/Linux or *BSD system then you can do X11 forwarding by adding the -X option to the SSH client. Then the ...
by tpyo kingg
Thu Oct 15, 2020 4:44 am
Forum: Beginners
Topic: copying a folder from pi to mac using cli ?
Replies: 2
Views: 103

Re: copying a folder from pi to mac using cli ?

If you have turned on the SSH server on either system, then you can connect from the other using sftp or scp. Both OSX (now MacOS) and Raspbian (now Raspberry Pi OS) have the server available. On the Raspberry Pi, see the Raspberry Menu -> Preferences -> Raspberry Pi Configuration -> Interfaces -> S...
by tpyo kingg
Thu Oct 15, 2020 4:17 am
Forum: Beginners
Topic: LibreOffice Navigation RESOLVED
Replies: 4
Views: 171

Re: LibreOffice Navigation

You can dock the Navigator's window in LibreOffice and have it as a pane within the main window by dragging it to the left or right of the window. As for clicking and dragging the items within the Navigator, that does not work in LibreOffice. At least not yet. However, if you highlight a heading in ...
by tpyo kingg
Thu Oct 15, 2020 3:35 am
Forum: Raspberry Pi OS
Topic: Why was the Raspberry Pi OS menu bar placed on the top?
Replies: 26
Views: 947

Re: Why was the Raspberry Pi OS menu bar placed on the top?

Nathan Lineback's Toasty Tech GUI Gallery shows screen shots of the early graphical interfaces in chronological order. Having the task bar at the top seems to have arrived in 1983 with the Lisa, which was the system the Macintosh was developed on.
by tpyo kingg
Wed Oct 14, 2020 4:13 pm
Forum: Raspberry Pi OS
Topic: Why was the Raspberry Pi OS menu bar placed on the top?
Replies: 26
Views: 947

Re: Why was the Raspberry Pi OS menu bar placed on the top?

It was first in the Macintoshes. The original reason it was at the top in the Macintoshes was that usability studies showed that it was easiest to hit with the mouse. Just shove the mouse forward and to the left and you're there. The reason that Apple's main competitor put it at the bottom was that ...
by tpyo kingg
Wed Oct 14, 2020 6:26 am
Forum: Troubleshooting
Topic: Can't get UFW to allow DHCP
Replies: 13
Views: 360

Re: Can't get UFW to allow DHCP

The Uncomplicated FireWall gets very complicated quickly, I've found. So I use NFtables these days when I can. It's much easier. However, as per UFW and DHCP, which way are you going, is your Raspberry Pi functioning as the DHCP server or are you just getting an address from another system? Which ar...
by tpyo kingg
Wed Oct 14, 2020 6:08 am
Forum: Troubleshooting
Topic: Can access through SSH but not SFTP
Replies: 16
Views: 1333

Re: Can access through SSH but not SFTP

Thanks. That seems to be the default set up. So it is a puzzle why you cannot connect with SFTP with FileZilla. Have you selected both port 22 *and*, as davidjin17 reminds, also selected SSH / SFTP from inside FileZilla? Even though FTP was from the 1970s and deprecated by the end of the 1990s, File...
by tpyo kingg
Tue Oct 13, 2020 4:35 pm
Forum: Troubleshooting
Topic: Accessing files via SFTP - Permissions Denied
Replies: 3
Views: 77

Re: Accessing files via SFTP - Permissions Denied

No problem. However, the important part is that the method is understood, the understanding will come in handy frequently. File system permissions are universal enough that there are lots of generic tutorials applicable to the Raspberry Pi.
by tpyo kingg
Tue Oct 13, 2020 3:42 pm
Forum: Troubleshooting
Topic: Accessing files via SFTP - Permissions Denied
Replies: 3
Views: 77

Re: Accessing files via SFTP - Permissions Denied

If the files are to be edited by the account 'pi' and write access does not need to be shared with other accounts, then you can give ownership of said directories to the account 'pi', group 'pi' sudo chmod 775 /var/www/html/ sudo chown -R pi:pi /var/www/html/ With those settings, you should be able ...
by tpyo kingg
Tue Oct 13, 2020 6:50 am
Forum: Beginners
Topic: Terminal v shell from Python RESOLVED
Replies: 3
Views: 138

Re: Terminal v shell from Python

They are both language interpreters. However, the one is also a primary interface to the operating system. With modifications the other could be too. I think IPython might be one such example. The default shell in Raspberry Pi OS is Bash, which is based on the Bourne shell. There are a lot of shells...
by tpyo kingg
Tue Oct 13, 2020 4:49 am
Forum: Troubleshooting
Topic: Can access through SSH but not SFTP
Replies: 16
Views: 1333

Re: Can access through SSH but not SFTP

That looks ok. What about when you try to connect via the SFTP client instead?

Code: Select all

sftp pi@whatever
Have you changed the server's configuration file at any time? You can check to see how it is configured to respond to the 'pi' account:

Code: Select all

sudo sshd -T -C user=pi | sort
by tpyo kingg
Mon Oct 12, 2020 4:20 pm
Forum: Troubleshooting
Topic: Can access through SSH but not SFTP
Replies: 16
Views: 1333

Re: Can access through SSH but not SFTP

Watch the logs on the Raspberry Pi: sudo tail -f /var/log/auth.log # or sudo tail -f /var/log/auth.log | awk '$5~/^sshd' # or sudo journalctl -u ssh Then try to connect from another machine using SFTP, either with FileZilla or something else. If you can connect with SSH, it is probably not a network...
by tpyo kingg
Mon Oct 12, 2020 12:30 pm
Forum: Raspberry Pi OS
Topic: Activating AppArmor in Raspberry Pi OS /Raspbian 10?
Replies: 2
Views: 237

Re: Activating AppArmor in Raspberry Pi OS /Raspbian 10?

Only for more recent material. I read something elsewhere at the end of September about AppArmor support on the Raspberry Pi being added and wonder if there was any truth to that or if I misread it was not relevant to Raspberry Pi OS. If I did read correctly, approximately when should I check back?
by tpyo kingg
Mon Oct 12, 2020 11:06 am
Forum: Troubleshooting
Topic: Can access through SSH but not SFTP
Replies: 16
Views: 1333

Re: Can access through SSH but not SFTP

I am having the same issue on the PI 4. I have tried so many different settings. I can log in with SSH, but when I try to connect to the sftp or scp server no prompt comes up. The password is working, it does not deny entry, but from windows and linux, I can't connect to the sftp server. Fillzila t...
by tpyo kingg
Sat Oct 10, 2020 5:22 pm
Forum: Networking and servers
Topic: VNC + SSH via 4G Internet
Replies: 10
Views: 380

Re: VNC + SSH via 4G Internet

One question is security. Presumable no source code would be available for download via the server's public IP, but would it be a problem if someone found the repository and downloaded the updates for themselves? If privacy is necessary, the VPS could host a repository at the localhost address and ...

Go to advanced search