LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   recognition of cartridge capacities (https://www.linuxquestions.org/questions/linux-software-2/recognition-of-cartridge-capacities-4175421456/)

taichi0161 08-10-2012 02:13 PM

recognition of cartridge capacities
 
Hi Guys
I have an epson sx130 printer,copier,scanner.I am trying to find a programme called inkblot so I can tell the ink levels in my printer.I have tried the programmes with ubuntu without success but I have been told that the inkblot one will work.
Best regards

abrinister 08-10-2012 05:31 PM

Just do a simple

Code:

sudo apt-get install inkblot
Alex Brinister

taichi0161 08-11-2012 03:11 AM

recognition of cartridge capacities
 
Quote:

Originally Posted by abrinister (Post 4751256)
Just do a simple

Code:

sudo apt-get install inkblot
Alex Brinister

Hi Alex
tried the solution first part o.k.but when I tried putting in a password for fred,which it had asked for it wouldnt accept anything I tried.

abrinister 08-11-2012 10:15 AM

Are you at work? Is this your own computer? If you are at work, then you need to ask your system admins to install it for you.

Alex Brinister

taichi0161 08-12-2012 02:38 AM

recognition of cartridge capacities
 
Hi Alex
No I am at home and it is my computer an ASUS X58Lseries.

abrinister 08-14-2012 11:05 AM

Hmmm odd. You put in your user password, correct? Since you are running Ubuntu, the root account is disabled. Did you enable the root account? Are you the administrator on this computer? Have you installed anything on your computer in the past?

Alex Brinister

taichi0161 08-15-2012 12:43 PM

Hi Alex
Yes I keyed in my password (which the terminal would not accept)yes I am the administrator.No I havent installed anything yet with the terminal this is the first try with you as my guide.As for opening a root account I know nothing of how to do this.
F.W.

abrinister 08-15-2012 01:51 PM

OK. Can you paste the output of

Code:

cat /etc/sudoers
Alex Brinister

taichi0161 08-16-2012 02:18 AM

Hi Alex
After putting cat/etc/sudoers and pressing enter,the reply comes up no such file or directory
F.W.

abrinister 08-16-2012 09:28 AM

Quote:

cat/etc/sudoers
Was there a space between "cat" and "/etc/sudoers" when you put in the command? If you don't have a sudoers file, then something bad happened during your install of Ubuntu. Ubuntu should create one automatically.

** EDIT **

If you truly do not have one, here is a generic one (this is from Arch but it's probably the same thing):

Code:

## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##

##
## Host alias specification
##
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias        WEBSERVERS = www1, www2, www3

##
## User alias specification
##
## Groups of users.  These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias        ADMINS = millert, dowdy, mikef

##
## Cmnd alias specification
##
## Groups of commands.  Often used to group related commands together.
# Cmnd_Alias        PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
#                            /usr/bin/pkill, /usr/bin/top

##
## Defaults specification
##
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
##
## Run X applications through sudo; HOME is used to find the
## .Xauthority file.  Note that other programs use HOME to find 
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
##
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
##
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
##
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
##
## Uncomment to enable special input methods.  Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
##
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot.  Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!/sbin/reboot !log_output

##
## Runas alias specification
##

##
## User privilege specification
##
root ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command
# %sudo        ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'

## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d

Make a new file like this:

Code:

gedit tmp
Copy the above into that file and at the very end, add something like this:

Code:

<your username> ALL =(ALL) ALL
Then do this:

Code:

cat tmp > /etc/sudoers
Alex Brinister

taichi0161 08-16-2012 01:19 PM

Hi Alex
I put in the command cat /tmp/sudoers in and got permission denied.I would like to thank you for taking the time to give me all usable code that you did but unfortunately it is way over my head at this stage.I have found a terminal emulator in the ubuntu software centre I mght try that.
F.W.

taichi0161 08-16-2012 02:17 PM

Hi Alex
tried another terminal:KONSOLE:same outcome.
F.W.

abrinister 08-16-2012 02:18 PM

Quote:

I put in the command cat /tmp/sudoers
You have to make a file called tmp (in your home directory) then paste the sudoers file I provided in there and add the ALL stuff at the end. Then, you write tmp (a file, not the directory) to a file called /etc/sudoers.

Code:

gedit tmp

<copy/paste stuff in the file>

<add "<your username> ALL =(ALL) ALL" and save>

cat ./tmp > /etc/sudoers

A terminal emulator isn't going to help. Your user account does not have root access, therefore you cannot do any system administration no matter what software you use. The sudoers file is essential. If the above stuff gives you "permission denied", then you will need to boot into a livecd and do it from there.

Alex Brinister

taichi0161 08-16-2012 04:14 PM

Hi Alex
When I try to copy sudoers file to gedit tmp I get an instruction that this file needs to be edited with VISUDO.What is VISUDO?
I am going to bed now my head aches.
Best regards F.W.

abrinister 08-16-2012 04:55 PM

ViSudo is basically a program that launches the vi editor, except that it can only edit the sduoers file. I think you are going to have to boot into a Ubuntu livecd, mount your hard drive, and copy the tmp file to /etc and rename it sudoers. If you don't have a tmp file, then you can just copy what's above.

Alex Brinister


All times are GMT -5. The time now is 10:38 AM.