Home » Unix » Page 2

I'm trying to run a python script through a user account, call it
myuser. I want to be able to execute the dropbox.py script without
logging into or su'ing into root. The program works perfectly when I
am either logged in as root, or su'd into root, but I want to find a
way to not have to su over to root and then run it every time I start
up.



When I run it as myuser, I get the following error:



[myuser@localhost Utilities]$ python dropbox.py start
Starting Dropbox...
The Dropbox daemon is not installed!
Run "dropbox start -i" to install the daemon


So, I run it with the -i option, as recommended and get the
following:



[myuser@localhost Utilities]$ python dropbox.py start -i
Starting Dropbox...Traceback (most recent call last):
File "dropbox.py", line 1404, in start
download()
File "dropbox.py", line 280, in download
import pygtk
ImportError: No module named pygtk


I ran it with strace and I get line after line that
looks roughly like this:



open("/home/myuser/Downloads/pygtk.so", O_RDONLY) = -1
ENOENT (No such file or directory)


There are no differences in the .bashrc, .bash_profiles,
.bash_history files of either profile. I also checked the .config
folder for differences and found none.



Again, the weirdest thing is that it works fine as root, but it
doesn't work when logged in as myuser. root is having no problem at
all importing in the elusive pygtk package.



Is there some kind of python permission(s) or configuration I need
to set somewhere to allow other users to import packages? Is there a
configuration setting of some kind I am missing in the myuser
account?



Thanks!

I was trying Systemback utility on my Linux Mint recently. I
created a live system restore (8.2 GB).
The utility gives an option of writing the created .sblive image to a
usb drive, but unfortunately I don't have a pen drive with 8.2 GB
space.



So, I decided to make a separate 10 GB partition in my 1 TB
external hard disk and intended to write the live system .sblive on
it.



However, unlike the usb pen drive, systemback utlity doesn't detect
my external hard disk partition, and thus I'm unable to write my
backup on it.



Any solution? Or any other software to write the .sblive to my
HDD?

Im trying to rsync all the .PHP and .HTML files from any directory
inside of /home/ . However in /home/site2/public_html/cache_old/
there are .html files that i do not want to include in the sync (thus
i want to exclude that directory and any of its sub-directories)



Here is the best rsync command i can come up with (after lots of
testing and failures):



rsync -avv /home/ /ssd/rsyncPHPsFORmtree/ --include '*/'
--include '*.html' --include '*.php' --exclude
/site2/public_html/cache_old/* --exclude '*'


Im convinced that my rsync command is not formatted properly based
upon this output from when rsync is running:



[sender] showing file
site2/public_html/cache_old/total_pages/s/e/a/r/c/page99.html because
of pattern *.html

[sender] showing file
site2/public_html/cache_old/total_pages/s/e/a/r/c/Page4.html because
of pattern *.html

[sender] showing file
site2/public_html/cache_old/total_pages/s/e/a/r/c/searchHe107.html
because of pattern *.html

[sender] showing file
site2/public_html/cache_old/total_pages/s/e/a/r/c/page18.html because
of pattern *.html


Thanks

I've found this in 'man 8 lvcreate', which raises some questions
for me. So:




-s, --snapshot OriginalLogicalVolume{Name|Path}



... Thin snapshot shares same blocks within the thin pool volume.
;




Question: same blocks? Same blocks as the
Origin of the Snapshot, or just "also blocks form the same pool", or
...






Side question, as I'm new to LVM: How could I find out, which
blocks belong to which file on a LVM system?

I am trying to open a website ( href="http://admin.beder.edu.al/" rel="nofollow">link here) since
I was told to use and they gave me some tasks to do from there. I have
always been able to use it from my work network, but not from other
networks. And the guy who created and used to administer the page has
gone MIA, so I can't ask him.It gives me a:
403 Forbidden
You don't have permission to access / on this server.



I know some of the causes for a 403 status code, but Idk why it
would allow me to only access it from a particular network. Is there a
chance that the website was configured to be used this way?

I am running Debian on an ARM device, is there any build of Google
Chrome for that?

I have zero-knowledge of Linux. I always found the interface where
I get to click things with a mouse curser to be easier for me than
black-windows with a lot of text-lines (at least that's my vision of
"linux" I guess).



I am starting a website/software of sort and I was requested by my
programmers to carry out several things on the server (I purchased a
dedicated server with "CentOS" on it, I guess that's Linux):




sudo apt-get install supervisor 


Within /etc/supervisor/conf.d create a
laravel-worker.conf file.



chmod +x laravel-worker.conf. 


Add this
content to file laravel-worker.conf: (TEXT HERE)




I managed to connect to that black window ("SSH" I understand it's
called) using Putty, but then things go wrong - the command "apt-get"
doesn't exist, and I found someplace else on google that I can install
using "easy_install supervisor" which seemed to be working, only I
used that "cd /etc" command to see the filed in the etc folder and
there is no "supervisor" folder...



How do I install it?



Also, once I installed it, how do I create a file or how do I fill
that file with text if I don't have a screen in front of me or a mouse
curser to choose a line and so on?...



I'd appreciate any help you can provide.



Thank you!

I was looking at :-



$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.7
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.7
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.0.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES
3.00
OpenGL ES profile extensions:


From the above, this bit -



OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile


seems to say that it is all using software rendering, how do I turn
on the hardware rendering if I want to ?

I am stuck in a situation. I have a file script.txt with
contents



$cat script.txt

SET TABLESPACE CONTAINERS FOR 3
-- IGNORE ROLLFORWARD CONTAINER OPERATIONS
USING (
FILE '/db2data2/dbs/rahtest/rahtest1.lrg' 5120
);


SET TABLESPACE CONTAINERS FOR 4
-- IGNORE ROLLFORWARD CONTAINER OPERATIONS
USING (
FILE '/db2data2/dbs/rahtest/rahtest2.lrg' 5120
);


My requirement is the filesystems in the lines



FILE '/db2data2/dbs/rahtest/rahtest1.lrg' 5120
FILE '/db2data1/dbs/rahtest/rahtest2.lrg' 5120


I need to replace



/db2data2/dbs/rahtest/rahtest1.lrg


and



/db2data2/dbs/rahtest/rahtest2.lrg


with other filesystems; say



/db2data3/dbs/rahtest/rahtest1.lrg


and



/db2data3/dbs/rahtest/rahtest2.lrg


respectively.



Other parts should be the same. My output be such that the lines be
now--



FILE '/db2data3/dbs/rahtest/rahtest1.lrg'  5120
FILE '/db2data3/dbs/rahtest/rahtest2.lrg' 5120


It should reflect in my file. I dont know the position of the lines
in the line. I tried with sed. I tried to put the lines into variables
say var1 and var2



var1=`echo /db2data2/dbs/rahtest/rahtest1.lrg'
var2=`echo /db2data2/dbs/rahtest/rahtest2.lrg'
var3=`echo /db2data3/dbs/rahtest/rahtest1.lrg'
var4=`echo /db2data3/dbs/rahtest/rahtest2.lrg'


when I tried to do



sed 's/$var/$var3' script.txt


it fails as / is there. I am using AIX.
My final files should be like this--



SET TABLESPACE CONTAINERS FOR 3
-- IGNORE ROLLFORWARD CONTAINER OPERATIONS
USING (
FILE '/db2data3/dbs/rahtest/rahtest1.lrg' 5120
);


SET TABLESPACE CONTAINERS FOR 4
-- IGNORE ROLLFORWARD CONTAINER OPERATIONS
USING (
FILE '/db2data3/dbs/rahtest/rahtest2.lrg' 5120
);

Computer A (assumed that ip is 44.44.44.44)can ftp the host
130.89.148.12.



ftp 130.89.148.12
Connected to 130.89.148.12.
220 ftp.debian.org FTP server
Name (130.89.148.12:debian8): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.


Computer B (my local pc) can not ftp the host 130.89.148.12.
Let's build a ssh tunnel with ssh command this way:



ssh -L -f -N localhost:2121:130.89.148.12:21  
root@44.44.44.44


The ssh tunnel between my local pc and Computer A (44.44.44.44) was
connected after password to login into 44.44.44.44.

Then to input the command on my local pc console:



ftp  localhost:2121
ftp: localhost:2121: Name or service not known


What is the matter with my ssh tunnel?


- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow