Raspberry Pi setup [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I feel that I have a bit of an unusual situation and haven't been able to find much to resolve it.
I recently got out my pi after almost 2 and a half years. I hadn't done much development then either, so I would say I know less than a Beginner. So I apologise if this is a stupid question.
I connected the SD card to the pi, the power, ethernet to my laptop, and HDMI to my projector. Once I started it, I could see the pi was doing a bunch of boot activities and finally stopped at:
My IP address is 192.168.2.2
Debian GNU/Linux 7.0 raspberrypi tty1
raspberrypi login: _
I do not have a keyboard to connect to so, I googled around and ssh'd into the pi.
So now, the terminal on my laptop is ssh'd into the pi and my projector is still showing the same screen with the command prompt text I have written above.
I remember being able to see the GUI of the raspberry pi. To tried to connect to vnc, I followed the steps listed in an article and did the following:
pi#raspberrypi ~ $ sudo nano /etc/ssh/ssh_config
pi#raspberrypi ~ $ lxsession
pi#raspberrypi ~ $ tightvncserver
New 'X' desktop is raspberrypi:1
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log
pi#raspberrypi ~ $
I am not sure what to do from here on.
I want to able to see the interface of the pi on the projector connected to the pi or, if I can only run applications and see on the projector then, set up the VNC on my terminal and be able to login on the screen showing on my projector:
My IP address is 192.168.2.2
Debian GNU/Linux 7.0 raspberrypi tty1
raspberrypi login: _
Please tell me what I can do, I have tried looking on Google/SO but haven't been successful.
I want to be able to see the pi interface on my projector and control it with my mac for now (this is probably done via ssh, I'm guessing?), and may be later, I will buy an external laptop for the pi.
Any help will be great! You can even just direct me in the right way!
Thanks in advance for your help!
Excited to start using the pi now that I have the time and abilities!

On your pi, open a terminal and type raspi-config, under one of the options you'll be able to set the pi to boot into GUI mode, otherwise this is done by typing startx. I'm assuming this is your problem.
It sounds like you're following a tutorial about how to setup vnc, I remember the one from the official raspberry pi site being good, if you still need help with that: https://www.raspberrypi.org/documentation/remote-access/vnc/
Let me know if you need further assistance.

Related

Host SMBus controller is not enabled [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have maked a backup from my VMWare Virtual Machine. I have imported it into the source folder.
At the first time i can start the VM, it shows me the error, but i can start it. But when i reboot the VM, the error shows me, but the VM dont start.
shows to me and the VM dont start, error :
"piix4_smbus 0000:00:007.3" Host SmBus controller not enabled!"
I have tried to add into the blacklist.conf file this line : blacklist i2c-piix4
But it still dont works.
Have you tried changing the dash in blacklist i2c-piix4 to an underscore, like blacklist i2c_piix4? That may also solve the problem.
Well I wanted to post this on a ubuntu forum, but didn't have enough reputation, so I just post it here (same error on kali linux)
So this just happend to me and I wanted to share it with y'all, perhaps it helps somebody:
So I run Kali Linux in a VMware enviroment on Windows and I was away from my computer. It went
to sleep (while transfering files to a shared windows folder) and when I came back it only
showed a black screen. So I did a restart but then a blue screen happend. After restarting my
host I went and tried to power up the kali linux OS, then I got the following error:
Piix4_SMBus: 000:00:07.3: Host SMBus controller bus not enabled
not only that, it was stuck on a initramfs console. After trying all the stuff I found related
to this error (adding the blacklist stuff in any imagionable way) I went back to the error.
If you are in the initramfs console then type exit. It should show a error what is happening.
For me it showed that the /dev/sda1 had problems and I had to run fsck manually. What I did
not mention before is that I managed to get inside the kali linux OS by adding the original ISO
as a CD to VMware. I then entered the boot menu with F2 and changed the boot order to have CD on top.
You then get additional advanced boot options, also the recovery kali linux OS. (the graphical didn't work,
just use the console one) follow all the steps and enter the /dev/sda1 as root console. Then type the following
commands:
mount -o remount,ro /
fsck
it should do a fsck scan now and for me it showed a lot of errors. Just press enter on every error and then do
a reboot. Change the boot order in the BIOS again and then it should boot normally.

Remotely install Linux on Windows xp using TeamViewer [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Our customer has about 800+ computers running Windows XP distributed across the country. Each computer can be accessed using TeamViewer. The goal is to replace XP by a Linux distribution remotely.
Does anybody know if this is possible, and where to start?
Thanks!
PXE is your only realistic hope:
Some on-site assistance is needed to press F12 at Bios before Windows XP boot:
A) On PC-A, setup DHCP server that refer DHCP-client to PXE server that download Linux ISO from a web server (of course all three can be a Windows machine in the same LAN segment onsite)
B) reboot PC-B onsite to reboot machine and press F10-F12 to choose Boot-options
C) then choose network-boot (PXE-Boot)
further reading : https://www.vercot.com/~serva/
guide: https://youtu.be/nnxgFpUr1Og?t=39
Note: Make sure you have enabled proxyDHCP and not DHCP Server
I would try with something like these:
Clonezilla, which works by replicating a previously prepared disk image to one or more computers booted inside a network segment
Cobbler, which works like a provisioning server for Linux based machines
Of those options, I have used Clonezilla with success. As long as the prepared base image doesn't change too frequently, the main time consuming tasks would be related with configuring the Clonezilla server and building that seed image.
I did a basic test of Cobbler and it worked fine in my environment, being this a way that would be more apt to deal with requirement changes.
Please also note that both options require some network configuration, like DHCP server settings that work with the PXE protocol.
Also, for your requirement, someone, a human being, would be needed to execute one or more of these tasks:
Properly enable network booting in the BIOS of each of the 800+ machines, unless it has already be done before
Boot the machines to install the new operating system
The network booting option, based on the PXE specification, should be supported by the motherboard of those machines and have higher booting priority than other devices, like CD drives, hard drives, etc.
Another thing to consider for the couple of options I'm suggesting, is how are those 800+ distributed across the country. The more disperse they are, the more cumbersome this task will be. Quite contrary, if there are few places were those machines are located, the more feasible this task will be; for example, by preparing and testing a server, computer or laptop that you then carry to each of those few places and installing the new operating system.
Regarding the option to boot using the public Internet to reach a remote deployment server, I don't know about how that could be done; in fact, for me that would be something quite interesting to learn about. If something like this is possible, another variable to note is the hardware compatibility of the destination machines, because as far as I know, protocols like PXE do some kind of multicast or broadcast in the local network segment and I presume those 800+ machines don't have recent motherboards with advanced firmware that could support more modern boot protocols.
That's all for now.

How to run firefox program in linux and get its output on windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have one centos 7 (minimum setup) installed on cloud .
I m connect it using using putty on my laptop.
I have installed Firefox on centos server which has fast internet connection.
However whenever i run Firefox its not loading because it doesn't have GUI installed (and i m connecting it using putty).
I want to browse internet on it from windows machine. How can i go about it?
Error Message
# firefox
Error: GDK_BACKEND does not match available displays
Please help
You need to supply Firefox with a virtual graphic screen. You could for example install XMing on Windows, and configure PuTTY to "forward X connection".
Then Firefox will "draw" on the screen, and the screen will be transmitted to your PC. Your mouse and keyboard signals will be transmitted to the remote server.
This setup should go about six times as slow than your current Web connection, since your connection to the Internet, which is the bottleneck, is unchanged, and now you're pushing massive X data on it instead of browsing elements.
A better possibility would be to install Squid proxy on the remote server, then configure your PuTTY to open a "tunnel" from remote port 127.0.0.1:3128 to local port 3128, and finally instructing your Windows Firefox to use 127.0.0.1 on port 3128 as proxy for all protocols.
This way, the browsing information will be downloaded remotely, compressed and forwarded to you.
This should be around twice as slow as your current connection (unless you're connecting with old Web sites without gz/deflate support, and mostly text with no images. In that case you might experience a connection up to five times as fast, albeit with a somewhat increased latency.
(An even better but even more complicated setup involves running a local proxy, connected through SSH tunnel to a remote proxy).
In all cases your navigation might appear as coming from the remote machine, but to ensure there's no information leak, you need to properly configure the proxy.
Use the below command to connect
$ ssh -Y whatever.com
On the Centos server, edit the file /etc/X11/sshd_config, it will be necessary to turn on X11 forwarding with a line like
X11Forwarding yes
In the putty Enable X11 forwarding in the configuration.
You can forward X over SSH, but it is painfully slow. Something like NoMachine will do far better.
However, if you are trying to get faster internet, you may be out of luck as any attempt to improve this will just add overhead.
You may be able to set up a VPN to improve the compression on data you receive from other websites. Take a look at this SO post for some information about what's available and what solutions already exist.

Windows 8.1 gets Error 720 on connect VPN [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I use windows 8.1 64-bit on my machine and recently, without having installed any new application, I get the following error when connecting to VPN:
Error 720: Unable to establish a connection to the remote computer.
Might need to change the network settings for this connection.
Tenentei already follow several tutorials but in no've succeeded.
Example configuration that tried to accomplish:
http://en.remontka.pro/error-720-windows-8-and-8-1-solved/
Thankyou
Since I can't find a complete or clear answer on this issue, and since it's the second time that I use this post to fix my problems, I post my solution:
why 720? 720 is the error code for connection attempt fail, because your computer and the remote computer could not agree on PPP control protocol, I don't know exactly why it happens, but I think that is all about registry permission for installers and multiple miniport driver install made by vpn installers that are not properly programmed for win 8.1.
Solution:
check write permissions on registers
a. download a Process Monitor
http://technet.microsoft.com/en-us//sysinternals/bb896645.aspx and run it
b. Use registry as target and set the filters to check witch registers aren't writable for netsh: "Process Name is 'netsh.exe'" and "result is 'ACCESS DENIED'", then get a command prompt with admin permissions and type netsh int ipv4 reset reset.log
c. for each registry key logged by the process monitor as not accessible, go to registers using regedit anche change these permissions to "complete access"
d. run the following command netsh int ipv6 reset reset.log and repeat step c)
unistall all not-working miniports
a. go to device managers (windows+x -> device manager)
b. for each not-working miniport (the ones with yellow mark): update driver -> show non-compatible driver -> select another driver (eg. generic broadband adapter)
c. unistall these not working devices
d. reboot your computer
e. Repeat steps a) - d) until you will not see any yellow mark on miniports
delete your vpn connection and create a new one.
that worked for me (2 times, one after my first vpn connection on win 8.1, then when I reinstalled a cisco client and tried to use windows vpn again)
references:
http://en.remontka.pro/error-720-windows-8-and-8-1-solved/
https://forums.lenovo.com/t5/Windows-8-and-8-1/SOLVED-WAN-Miniport-2-yellow-exclamation-mark-in-Device-Manager/td-p/1051981
This solved my 720 problem. The idea is to change the driver of the faulty WAN to another network adaptar driver, and then we are able to uninstall the WAN device and then reboot the system.
https://forums.lenovo.com/t5/Windows-8-and-8-1/SOLVED-WAN-Miniport-2-yellow-exclamation-mark-in-Device-Manager/td-p/1051981
First I would like to thank Rose who was willing to help us, but your answer could solve the problem on a computer, but in others there was what was done could not always connect gets error 720.
After much searching and contact the Microsoft support we can solve.
In Device Manager, on the View menu, select to show hidden devices.
Made it look for a remote Miniport IP or network monitor that is with warning of problems with the driver icon. In its properties in the details tab check the Key property of the driver.
Look for this key in Regedit on Local Machine, make a backup of that key and delete it. Restart your windows.
Reopen your device manager and select the miniport that had deleted the record. Activate the option to update the driver and look for the option driver on the computer manually and then use the option to locate the driver from the list available on the computer on the next screen uncheck show compatible hardware. Then you must select the Microsoft Vendor and the driver WAN Miniport the type that is changing, IP or IPV6 L2TP Network Monitor.
After upgrading restart the computer.
I know it's a bit laborious but that was the only way that worked on all computers.
Based on the Microsoft support KBs, this can occur if TCP/IP is damaged or is not bound to your dial-up adapter.You can try reinstalling or resetting TCP/IP as follows:
Reset TCP/IP to Original Configuration- Using the NetShell utility,
type this command (in CommandLine): netsh int ip reset [file_name.txt],
[file_name.txt] is the name of the file where the actions taken by
NetShell are record, for example netsh hint ip reset fixtcpip.txt.
Remove and re-install NIC – Open Controller and select System. Click
Hardware tab and select devices. Double-click on Network Adapter and
right-click on the NIC, select Uninstall. Restart the computer and
the Windows should auto detect the NIC and re-install it.
Upgrade the NIC driver – You may download the latest NIC driver and
upgrade the driver.
Hope it could help.
I had the same problem. Most posted solutions would not work.
I ran sfc /scannow and it reported that some errors could not be fixed.
To address that problem I ran the command
Dism /Online /Cleanup-Image /RestoreHealth
Ironically, I later found the WAN errors had gone away, the 720 VPN error went away and my VPN worked.
Hard to believe that the WAN errors were corrected by this rather esoteric command, but it's worth a try.

How to install OpenShift Origin on Windows 7? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am wanting to install OpenShift Origin on my PC running Windows 7.
I am completely new to Linux environments and terminology but wanted to 'look around' the OpenShift product with the hope that I can become familiar with its offerings and features.
So I have started here:
https://www.openshift.com/products/origin
Where the instructions are:
"The easiest way to run OpenShift Origin locally is to download an image suitable for running on a VM. The image will work on KVM , VirtualBox or VMWare . You can also spin up a VirtualBox instance using Vagrant or build your own machine using Puppet".
I have downloaded openshift-origin.latest.tgz and I am assuming the next step is to download and install a 'VM' (something I also have never used)?
I have heard the name VMWare before but when I visit the site there seem to be 15+ different products and I'm not sure which one is required for the above task.
So, is it possible for someone to provide a <ul> of steps required to install and run OpenShift Origin on Windows 7?
A google search for how to install openshift origin on windows 7? does not seem to return any immediately obvious results (the first result links to an article that starts with [obsolete]).
There is a video called 'open shift origin setup' here:
http://youtu.be/rzW3N_C5sIE
But it starts with a file called 'openshift_origin.iso' and not the 'openshift-origin.latest.tgz' that I have downloaded and then it gets into some terminal coding that is completely foreign to me.
Any pointers appreciated.
Edit:
In addition to accepted answer below, as virtual machines may be a bit ominous to newbies here are some screenshots which show the installation of VirtualBox, it was really pretty easy.
For Windows 7, I downloaded VirtualBox 4.2.16 for Windows hosts x86/amd64 from:
https://www.virtualbox.org/wiki/Downloads
and then ran the installer:
Then you will see a few of these type of screens, just click 'Install'.
Unfortunately then when running OpenShift, as per instructions in accepted answer, I got this message:
And I haven't been able to find a workaround to this yet.
But this error shouldn't occur for those who have hardware acceleration enabled.
VirtualBox
VirtualBox is freely available.
Open VirtualBox from the Start Menu - this opens the VirtualBox Manager.
Open the menu File > Import Appliance or press CTRL+I.
Click Open Appliance...
Browse to the folder you downloaded OpenShift Origin to.
Select the .ovf file.
Press Next.
Press Import.
It'll import the file for a while (roughly 2 minutes on my computer) and show up as a Virtual Machine afterwards. You can just click Start and it'll boot up.
VMWare
VMWare Player is free for personal non-commercial use while most other VMWare products are not.
I haven't personally tried this route, but it seems easy enough to just open the .vmx file directly.
Your choices of software to run the ISO (VM image with Fedora) on Windows is VirtualBox or VMWware Workstation. Here's an interesting article that compares the 2:
http://www.infoworld.com/d/virtualization/review-vmware-workstation-9-vs-virtualbox-42-203277
2 unrelated things here...
First, if you do not have a hardware virtualization enabled 64 bit processor (listed as VT-X on Intel chips, and AMD-V on AMD processors), then you cannot host an OpenShift Origin VM, which itself spawns VMs, and thus not only needs the virtualization enabled processor, but needs its VirtualBox VM enabled for virtualization (a checkbox under System/Acceleration in the settings for the VM).
Second, OpenShift Origin relies on multicast DNS, which is not supported on Windows 7, so it won't work.
If you can install Fedora 20 Alpha (I expect Fedora 19 will work, but I haven;t tried it) onto metal, then install VirtualBox and the nss-mdns RPM, that should work.
Been there, done that, got the headache.

Resources