raspbian

Start Raspberry Pi without login [closed]

独自空忆成欢 提交于 2019-12-31 09:21:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I would like to ask you if there is any way to start raspberry pi (using Raspbian) without login and password and to move directly to the GUI. Like Windows for example. 回答1: Raspbian Wheezy: Following was taken from eLinux.org RPi Debian Auto Login page: Auto Login: In Terminal: sudo nano /etc/inittab Scroll

Start shell script on Raspberry Pi startup

对着背影说爱祢 提交于 2019-12-30 13:56:45
问题 I have a python program which posts to my local web server. The script runs on a raspberry pi running the latest version of raspbian 3.18. How can I make the Python script run at startup? Raspbian has a login password which is the first thing I have to remove. If the power ever goes out I want the pi to reboot and start running my script again. Should I be using Raspbian for this? The script is the only thing the pi is used for. I tried adding the script to /etc/init.d but I do not think it

How to delete a network profile from etc/wpa_supplicant/wpa_supplicant.conf through command line / shell script

三世轮回 提交于 2019-12-30 05:15:09
问题 I have multiple wifi network ssid's saved in my etc/wpa_supplicant/wpa_supplicant.conf like shown below, can we delete a specific network from this wpa_supplicant.conf Ex: in the below networks can a delete the network myssid1 through a shell script which i can then execute through node.js server network={ ssid="myssid1" scan_ssid=0 proto=WPA key_mgmt=WPA-PSK psk=5f55a9b869e9ab6d03839cae23c7243accc0ac0a12079d358328bf73ad2e0ebe } network={ ssid="myssid2" scan_ssid=0 proto=WPA key_mgmt=WPA-PSK

Mono remote debugging from Visual Studio

强颜欢笑 提交于 2019-12-29 03:18:08
问题 I would like to remote debug a C# console application running on Linux from Visual Studio. Here's what I found so far: http://www.mono-project.com/Debugger The Mono runtime implements a debugging interface that allows debuggers and IDEs to debug managed code. This is called the Soft Debugger and is supported by both MonoDevelop, Xamarin Studio and Visual Studio (when the appropriate plugins are installed) as well as the command line SDB client. Mono provides an API to communicate with the

PHP exec() works in command line but not in web

早过忘川 提交于 2019-12-25 09:35:19
问题 I'm trying to use jarun's "googler" in a PHP script in order to search YouTube and find the URL of the first result. The command I'm executing is googler --np --json -C -n 1 -w youtube.com -x <name of youtube video> , and it works perfectly on my local machine. Here is my code: <?php exec("googler --np --json -C -n 1 -w youtube.com -x thomas the dank engine", $results); var_dump($results); ?> When I execute this in the command line, it works perfectly as it should, but when I do it via a web

nodejs version issue when installing express

本秂侑毒 提交于 2019-12-25 02:28:08
问题 Just setting up my raspberry pi as node.js server. Did a clean install of Raspberian then installed node if I do node -v it says: v0.10.25 then installed npm if I do npm --version it says: 1.1.4 if I do then npm install express it fails and as the reason why it says npm ERR! Required: {"node":">= 0.8.0"} npm ERR! Actual: {"npm":"1.1.4","node":"0.6.19"} Any idea what I am doing wrong? 回答1: I used this manual and version 0.11.3 and got success. http://doctorbin.tumblr.com/post/53991508909/how

How do I setup a cron to run specifically with python3?

喜夏-厌秋 提交于 2019-12-24 23:07:13
问题 I'm trying to setup a cron job to run a python script every hour, but it has to be run with python3. I've tried setting up the cron to point to the python 3.6 libraries, but this doesn't seem to work. This is how I've set it up 0 * * * * /usr/local/lib/python3.6/python3 /mnt/dietpi_userdata/python/main.py I suspect it's something simple, but it's beyond my own (googling) skills. 回答1: Are you sure that your python3 path is correct? If you are not using a virtual environment you could try this:

Raspberry can't access /dev/mem

坚强是说给别人听的谎言 提交于 2019-12-24 18:10:28
问题 I have installed Raspbian on my Raspberry and added in: /etc/rc.local: chown /dev/ttyUSB0 #to allow current user to use 3G modem /etc/sudoers: raspbian ALL=NOPASSWD: ALL And for autologin: 1:2345:respawn:/sbin/getty --autologin raspbian --noclear 38400 tty1 Before I can use GPIO from Python to write to GPIO pins. Now when I try to run with sudo my Python script I receive an exception where is write that I can't access /dev/mem I tried to add "raspbian" user to group "kmem" but don't works. I

Autostart does not work after user reboot

隐身守侯 提交于 2019-12-24 18:09:03
问题 I want to autostart a sh script after reboot. I add below line to /etc/xdg/lxsession/LXDE-pi/autostart . @/home/pi/mog/run.sh Everything works fine if i plug the raspberrypi-2 to power line or switch on it after halt. However when i run shell command sudo shutdown -r now the autostart method does not work after reboot? I want to run a C++ application after reboot and my run.sh script is below. #!/bin/bash sleep 5 /home/pi/mog/mog -platform xcb 回答1: I guess it depends on what type of shell

Generate keystrokes in Linux from Python3

筅森魡賤 提交于 2019-12-24 11:37:32
问题 I need to generate keystrokes in Linux (Raspbian) from Python3. Something like uinput but for Python3. I'd prefer not to use subprocess for this. Easier to install (apt-get) the better as it will be used in a guide to show others. Any ideas? Thomas 回答1: Found PyUserInput that works. https://github.com/SavinaRoja/PyUserInput/wiki/Installation https://github.com/SavinaRoja/PyUserInput sudo apt-get install python3-pip sudo pip-3.2 install python3-xlib sudo pip-3.2 install PyUserInput And the